package com.geeklei.player;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends Activity {
    List<Object> bytes = new ArrayList<Object>();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        init();
        findViewById(R.id.play_btn).setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                startActivity(new Intent(com.geeklei.player.MainActivity.this, com.geeklei.player.PlayVideoActivity.class));
            }
        });
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.i("onOnb---", bytes.toString());
    }

    private void init() {
        for (int i = 1; i < 100; i++) {
            bytes.add(new Object());
        }
    }
}
